const seq = require('../connections/mysql_connect'),
      {STRING, TEXT, INT} = require('../../config/db_type_config');

const AboutUs = seq.define('about_us', {  
  aid: {
    comment: 'About_us_ID',
    type: INT,
    allowNull: false,
    unique: true
  },
  posterImgUrl:{
    comment: 'poster_image_url',
    type: STRING,
    allowNull: false
  },
  title:{
    comment: 'title',
    type: STRING,
    allowNull: false
  },
  name:{
    comment: 'agency_name',
    type: STRING,
    allowNull: false
  },
  intro:{
    comment: 'introduction',
    type: TEXT,
    allowNull: false
  },
  posterImgKey:{
    comment: 'qiniu_poster_image_name',
    type: STRING,
    allowNull: false
  },

  // status: {
  //   comment: 'about_us status', //控制是否显示
  //   type: INT,
  //   defaultValue: 1,
  //   allowNull: true //设初始值要同时设置非空
  // }
})


module.exports = AboutUs;